package com.zhaojun.cloud.service.account.provider;

import com.zhaojun.cloud.common.mapper.service.IUserAccessService;
import com.zhaojun.cloud.common.pojo.User;
import com.zhaojun.cloud.common.util.AssertionEx;
import com.zhaojun.cloud.service.api.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * wwj
 * 2018/11/26  17:19
 */
@RestController
public class UserServiceProvider implements UserService {

    @Autowired
    private IUserAccessService userAccessService;

    @Override
    public User findUserById(@RequestParam Long id) {
        System.out.println("进来了");
        return userAccessService.getById(id);
    }
}
